package com.renliwo.processor.startup;

import com.renliwo.processor.Application;
import com.renliwo.processor.service.PhaseIICityModifyService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

/**
 * Created by Louis on 2017/9/21.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
@WebAppConfiguration
public class PhaseIICityModify {

    @Autowired
    private PhaseIICityModifyService phaseIICityModifyService;

    @Test
    public void simpleTestForceConscienceAudit(){

        phaseIICityModifyService.forceConscienceAudit();
        System.out.println("测试成功！");
    }

    @Test
    public void simpleTestForceConscienceAuditLog(){
        phaseIICityModifyService.forceConsienceAuditLog();;
        System.out.println("测试成功！");
    }


}
